home *** CD-ROM | disk | FTP | other *** search
- on showTubWarn
- quitThisProgram()
- end
-
- on cleanupMIAW
- global locatorWin
- forget(locatorWin)
- end
-
- on hideSprites
- end
-
- on PSMupdate
- global mediaName, mediaChoice, Master, PSMtextVis
- if the number of member (mediaName && mediaChoice) > 0 then
- if cast(the castNum of sprite 41).castType = #digitalVideo then
- cast(the castNum of sprite 41).controller = 0
- end if
- set the castNum of sprite 41 to the number of member (mediaName && mediaChoice)
- updateStage()
- if cast(the castNum of sprite 41).castType = #digitalVideo then
- sprite(41).movieTime = 0
- cast(mediaName && mediaChoice).controller = 1
- end if
- if word 2 of field (mediaName && mediaChoice && "info") = 1 then
- PSMtext = cast(the castNum of sprite 41).name
- put field(PSMtext && "text") into field "PSM textField"
- sprite(26).visible = 1
- else
- if PSMtextVis then
- closePSMtext()
- end if
- sprite(26).visible = 0
- put " " into field "PSM textField"
- end if
- mediaChoice = the last word in the name of cast the castNum of sprite 41
- mediaTotal = value(word 3 of line 2 of field (mediaName && mediaChoice && "info"))
- if mediaChoice < mediaTotal then
- sprite(27).visible = 1
- else
- sprite(27).visible = 0
- end if
- if mediaChoice > 1 then
- sprite(25).visible = 1
- else
- sprite(25).visible = 0
- end if
- sprite(47).visible = 0
- sprite(41).visible = 1
- updateStage()
- if (cast(the castNum of sprite 41).castType = #digitalVideo) and (Master = "MI4") then
- sprite(41).movieRate = 1
- end if
- else
- set the castNum of sprite 41 to the number of member "menAtWork 1.0"
- puppetSound(0)
- updateStage()
- puppetSound("construction")
- sprite(47).visible = 0
- sprite(41).visible = 1
- updateStage()
- end if
- end
-
- on closePSMtext
- global PSMtextVis
- sprite(39).visible = 0
- repeat with n = 0 to 20
- set the locV of sprite 2 to the locV of sprite 3 + 141 - (n * 8)
- updateStage()
- end repeat
- PSMtextVis = 0
- sprite(2).visible = 0
- updateStage()
- end
-
- on closePSMdisp
- global PSMdispVisible, PSMtextVis, mediaChoice, gMute, gFade, Vol
- if PSMtextVis then
- closePSMtext()
- end if
- if cast(the castNum of sprite 41).castType = #digitalVideo then
- sprite(41).movieRate = 0
- cast(the castNum of sprite 41).controller = 0
- set the castNum of sprite 41 to the number of member "PSMborder"
- end if
- sprite(41).visible = 0
- repeat with n = 25 to 27
- sprite(n).visible = 0
- end repeat
- puppetSound("Open Panel")
- repeat with n = 0 to 21
- set the locH of sprite 3 to 445 + (n * 15)
- updateStage()
- end repeat
- puppetSound("Close Panel")
- updateStage()
- repeat while soundBusy(1)
- nothing()
- end repeat
- puppetSound(0)
- updateStage()
- if (gMute = 0) and (gFade = 1) then
- pause()
- continue()
- repeat while the volume of sound 2 <= (Vol - 4)
- set the volume of sound 2 to the volume of sound 2 + 4
- updateStage()
- time = the timer
- repeat while the timer = time
- nothing()
- end repeat
- end repeat
- set the volume of sound 2 to Vol
- updateStage()
- gFade = 0
- end if
- PSMdispVisible = 0
- mediaChoice = 1.0
- end
-
- on openPSMtext
- global PSMtextVis
- repeat with n = 20 down to 0
- set the locV of sprite 2 to the locV of sprite 3 + 141 - (n * 8)
- updateStage()
- end repeat
- sprite(39).visible = 1
- updateStage()
- PSMtextVis = 1
- end
-
- on openPSMdisp
- global PSMdispVisible
- puppetSound("Open Panel")
- repeat with n = 21 down to 0
- set the locH of sprite 3 to 445 + (n * 15)
- updateStage()
- end repeat
- puppetSound("Close Panel")
- updateStage()
- sprite(47).visible = 1
- updateStage()
- repeat while soundBusy(1)
- nothing()
- end repeat
- PSMdispVisible = 1
- end
-
- on closeTextDisp
- global textDispVisible
- sprite(40).visible = 0
- repeat with n = 22 to 24
- sprite(n).visible = 0
- end repeat
- puppetSound("Open Panel")
- repeat with n = 0 to 25
- set the locH of sprite 4 to 470 + (n * 10)
- updateStage()
- end repeat
- puppetSound("Close Panel")
- updateStage()
- textDispVisible = 0
- end
-
- on openTextDisp
- global textDispVisible
- puppetSound("Open Panel")
- repeat with n = 25 down to 0
- set the locH of sprite 4 to 470 + (n * 10)
- updateStage()
- end repeat
- puppetSound("Close Panel")
- updateStage()
- textDispVisible = 1
- sprite(40).visible = 1
- repeat with n = 22 to 24
- sprite(n).visible = 1
- end repeat
- end
-